package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.EvaluationDao;
import com.ouheng.shop.domain.EvaluationDO;
import com.ouheng.shop.service.EvaluationService;



@Service
public class EvaluationServiceImpl implements EvaluationService {
	@Autowired
	private EvaluationDao evaluationDao;
	
	@Override
	public EvaluationDO get(Long id){
		return evaluationDao.get(id);
	}
	
	@Override
	public List<EvaluationDO> list(Map<String, Object> map){
		return evaluationDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return evaluationDao.count(map);
	}
	
	@Override
	@Transactional
	public int save(EvaluationDO evaluation){
		return evaluationDao.save(evaluation);
	}
	
	@Override
	@Transactional
	public int update(EvaluationDO evaluation){
		return evaluationDao.update(evaluation);
	}
	
	@Override
	@Transactional
	public int remove(Long id){
		return evaluationDao.remove(id);
	}
	
	@Override
	@Transactional
	public int batchRemove(Long[] ids){
		return evaluationDao.batchRemove(ids);
	}

	@Override
	@Transactional
	public List<Map<String, Object>> listEvaluation(Map<String, Object> map) {
		return evaluationDao.listEvaluation(map);
	}
	
}
